<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>vue基础讲解</title>
		<!-- <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script> -->
		<script src="js/vue.js"></script>
	</head>
	<body>
		
		<div id="app">	
		<button @click="changeImg()">切换图片显示</button>
			<img src="img/bg1.jpg" v-show="isShow" />
		</div>
		
		<script>		
		var app=new Vue({
			el:"#app",
			data:{
				msg:"<button>ok</button>",
				isShow:true
				
			},
			methods:{
				changeImg:function(){
					this.isShow=!this.isShow
				}
			}
			
		})
		
		
		
		</script>
		
	</body>
</html>
